package com.woniuxy.dao;

import com.woniuxy.controller.info.DefectPriorityIdAndNameInfo;
import com.woniuxy.model.Defectpriority;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 马世亮
 * @since 2022-02-15
 */
public interface DefectpriorityDao extends BaseMapper<Defectpriority> {


    @Select("SELECT defectPriority_id,defectPriority_name FROM t_defectpriority WHERE defectPriority_state=1")
    List<DefectPriorityIdAndNameInfo> selectIdAndName();

   @Select("SELECT * FROM t_defectpriority where  defectPriority_delect=0 ORDER BY defectPriority_num")
    List<Defectpriority> selectAll();



}
